package com.stagechatserver.chatserver.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.stagecommon.common.pojo.Chat;
import com.stagecommon.common.vo.ChatVo;
import org.apache.ibatis.annotations.Param;
import org.springframework.beans.factory.annotation.Autowired;

import java.util.List;


/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author yxl
 * @since 2021-11-09
 */
public interface ChatMapper extends BaseMapper<Chat> {

    List<ChatVo> getSessionByFromIdAndReceiver(@Param("fromId") Integer fromId, @Param("receiver") Integer receiver);
}

